package com.example.zhinongbao.Model;

import android.content.Context;

import com.example.zhinongbao.database.UserInfoDao;
import com.example.zhinongbao.entity.Goods;

public class ProductDetailImpl implements IGoodsDetail{
    private UserInfoDao userInfoDao;
    public ProductDetailImpl(Context context){
       userInfoDao =new UserInfoDao(context);
    }
    @Override
    public void addCart(int goodsId) {
        userInfoDao.addCart(goodsId);
    }

}
